package com.ozo.boot.common.base.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 排序参数
 *
 * @author qiangesoft
 * @date 2024-06-28
 */
@Schema(description = "排序参数")
@Data
public class BaseSortable implements Serializable {

    /**
     * 升序
     */
    public static final String ASC = "ascending";

    /**
     * 降序
     */
    public static final String DESC = "descending";

    /**
     * 字段
     */
    @Schema(description = "字段")
    private String prop;

    /**
     * 顺序
     */
    @Schema(description = "顺序")
    private String order;

}